<?php 
$form = $this->beginWidget('bootstrap.widgets.BootActiveForm', array(
	'id'=>'input-form',
	'enableAjaxValidation'=>false,
    'htmlOptions'=>array('class'=>'well'),
)); ?>

<fieldset>
	<?php echo $form->errorSummary($model); ?>
	<?php if ($create) { ?>
    <?php echo $form->textFieldRow($model, 'eMail',array('size'=>60,'maxlength'=>320, 'prepend'=>'<i class="icon-envelope"></i>')); ?>
    <?php } ?>
    <?php if ($password) { ?>
    <?php echo $form->passwordFieldRow($model, 'password1', array('prepend'=>'<i class="icon-lock"></i>')); ?>
    <?php echo $form->passwordFieldRow($model, 'password2', array('prepend'=>'<i class="icon-lock"></i>')); ?>
    <?php } ?>
    <?php if ($name) { ?>
    <?php echo $form->textFieldRow($model,'firstName',array('size'=>60,'maxlength'=>100)); ?>
    <?php echo $form->textFieldRow($model,'lastName',array('size'=>60,'maxlength'=>100)); ?>
    <?php } ?>
    <?php if( CCaptcha::checkRequirements() && $captcha) { ?>
    <?php echo $form->captchaRow($model,'verifyCode'); ?>
    <?php } ?>
</fieldset>
<div class="form-actions">
    <?php $this->widget('bootstrap.widgets.BootButton', array('buttonType'=>'submit', 'type'=>'primary', 'icon'=>'ok white', 'label'=>$model->isNewRecord ? Yii::t('view', 'Create') : Yii::t('view', 'Save'))); ?>
    
    <?php	
	if (!$create) {
		$this->widget('bootstrap.widgets.BootButton', array(
		    'label' => Yii::t('view', 'Cancel'),
			'icon' => 'icon-remove',
	      	'url' => array('/user/index'),
		)); 
	} else {
		$this->widget('bootstrap.widgets.BootButton', array(
		    'label' => Yii::t('view', 'Cancel'),
			'icon' => 'icon-remove',
      		'url' => array('/site/index'),
		)); 		
	}
	
	?>
</div>
<?php $this->endWidget(); ?>